package com.bdqn.pojo;

import com.bdqn.pojo.StorageRecord;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供货商表结构
 */
public class Supplier implements Serializable {
  private static final long serialVersionUID = 42L;
  private Integer id;//供货商id
  @NotEmpty(message = "供货商编号不能为空")
  private String supCode;//供货商编号
  @NotEmpty(message = "供货商名称不能为空")
  private String supName;//供货商名称
  private String supDesc;//供货商描述
  @NotEmpty(message = "联系人不能为空")
  private String supContact;//联系人
  @NotEmpty(message = "联系电话不能为空")
  private String supPhone;//联系电话
  private String supAddress;//地址
  private String supFax;//传真
  private int createdUserId;//创建人id
  private Date createdTime;//创建时间
  private Long updatedUserId;//修改人id
  private Date updatedTime;//修改时间

  private List<StorageRecord> storageRecordList; // 入库记录集合
  private Object companyLicPic; // 公司营业执照图片路径
  private Object orgCodePic; // 组织机构代码证图片路径

  public Supplier() {
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getSupCode() {
    return supCode;
  }

  public void setSupCode(String supCode) {
    this.supCode = supCode;
  }

  public String getSupName() {
    return supName;
  }

  public void setSupName(String supName) {
    this.supName = supName;
  }

  public String getSupDesc() {
    return supDesc;
  }

  public void setSupDesc(String supDesc) {
    this.supDesc = supDesc;
  }

  public String getSupContact() {
    return supContact;
  }

  public void setSupContact(String supContact) {
    this.supContact = supContact;
  }

  public String getSupPhone() {
    return supPhone;
  }

  public void setSupPhone(String supPhone) {
    this.supPhone = supPhone;
  }

  public String getSupAddress() {
    return supAddress;
  }

  public void setSupAddress(String supAddress) {
    this.supAddress = supAddress;
  }

  public String getSupFax() {
    return supFax;
  }

  public void setSupFax(String supFax) {
    this.supFax = supFax;
  }

  public int getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(int createdUserId) {
    this.createdUserId = createdUserId;
  }

  public Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(Date createdTime) {
    this.createdTime = createdTime;
  }

  public Long getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(Long updatedUserId) {
    this.updatedUserId = updatedUserId;
  }

  public Date getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(Date updatedTime) {
    this.updatedTime = updatedTime;
  }

  public List<StorageRecord> getStorageRecordList() {
    return storageRecordList;
  }

  public void setStorageRecordList(List<StorageRecord> storageRecordList) {
    this.storageRecordList = storageRecordList;
  }

  public Object getCompanyLicPic() {
    return companyLicPic;
  }

  public void setCompanyLicPic(Object companyLicPic) {
    this.companyLicPic = companyLicPic;
  }

  public Object getOrgCodePic() {
    return orgCodePic;
  }

  public void setOrgCodePic(Object orgCodePic) {
    this.orgCodePic = orgCodePic;
  }
}
